package cn.lijiajia3515.cairo.auth.framework.security.oauth2;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Map;

@Data
@Accessors(chain = true)

@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OAuth2JwkProperties {
	/**
	 * <p>K 对应 kid</p>
	 * <p>V  对应 rsa 私钥</p>
	 */
	private Map<String, Rsa> keys;

	@Data
	public static class Rsa {
		/**
		 * 公钥
		 */
		private String publicKey;

		/**
		 * 私钥
		 */
		private String privateKey;
	}
}
